package com.lanou.utp.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author MaQingYun
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Teacher implements Serializable {

    private Long id;
    private User user;
    private Integer type; /** 类型，0为本校，1为校外 */
    private Long schoolId; /** 学校id，本校教师有 */
    private Long collegeId; /** 学院id，本校教师有 */
    private Long majorId; /** 专业id，本校教师有 */
    private String teachsection; /** 教研室 */
    private String schoolName; /** 学校名字 */
    private String collegeName; /** 学院名字 */
    private Long baseId; /** 基地id，校外教师有 */
    private String baseName;

    private Integer role;/*角色*/

    private String majorName;
    private String name;//姓名

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;/*创建时间*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;/*更新时间*/

    private Integer status;/*状态*/


}
